import _fetch from './request'

// 面试宝典
export function interviewFilters () {
  return _fetch({
    url: '/interview/filters'
  })
}

// 模拟面试
export function interviewQuestions (params) {
  return _fetch({
    url: '/interview/questions',
    needToken: true,
    params
  })
}

// 提交试题
export function questionsSubmit (data) {
  return _fetch({
    method: 'post',
    url: '/questions/submit',
    needToken: true,
    data
  })
}

// 面试题详情
export function questionInfo (id) {
  return _fetch({
    url: '/questions/' + id,
    needToken: true
  })
}
